xen/arm: mm: clean up code in setup_pagetables
authorPeng Fan <van.freenix@gmail.com>
Thu, 12 May 2016 11:48:48 +0000 (19:48 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 17 Jun 2016 09:22:16 +0000 (10:22 +0100)
commite425f836e0655ef94fc2ce0c51a245eee5c83448
treee0155244448b1ab2fdcdf5be3d2cc8445b71c2a7
parentee1f5620599396b7660988f7944fe2867c49abba
xen/arm: mm: clean up code in setup_pagetables

The base of address for the relocated xen needs to be mapped
at the same virtual address (BOOT_RELOC_VIRT_START) in both
the boot and runtime page tables. So we can merge the two pieces
of code into one code block.

Also no need to use write_pte when mapping BOOT_RELOC_VIRT_START
in xen_second, because CPU0 is using boot page tables.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c